package com.info.dpunified.web.controller;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;


import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.mvc.Controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;

import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
public class DefectUploadController extends MultiActionController {

//public class DefectUploadController implements Controller {
    protected final Log logger = LogFactory.getLog(getClass());

    
    public ModelAndView defectupload(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        String now = (new java.util.Date()).toString();
        logger.info("returning hello view with " + request.getParameter("cboMonth"));

        Map<String, Object> myModel = new HashMap<String, Object>();
        myModel.put("now", now);
        //myModel.put("products", this.productManager.getProducts());

        return new ModelAndView("/hello", "model", myModel);
    }
    
}
